#include "ScnsGyro.c.h"

#if defined(SCNS_GYRO_ENABLE)&&SCNS_GYRO_ENABLE==1

#include "ScnsMenu.h"
#include "ScnsSmctpExtOscilloscope.h"
#include "ScnsIcm20602.h"
#include "ScnsIcm42605.h"

ScnsStatus scnsBspGyroPostInit(ScnsGyroEnum gyN)
{
    scnsMenuSetPage(4,"gyro",NULL);
    scnsMenuAddConstStruct(4,scnsGyroResult[SCNS_GYRO_1],pitch,,SCNS_TYPE_FLOAT);
    scnsMenuAddConstStruct(4,scnsGyroResult[SCNS_GYRO_1],roll,,SCNS_TYPE_FLOAT);
    scnsMenuAddConstStruct(4,scnsGyroResult[SCNS_GYRO_1],yaw,,SCNS_TYPE_FLOAT);
    scnsMenuAddConstStruct(4,scnsGyroResult[SCNS_GYRO_1],temp,,SCNS_TYPE_FLOAT);
    return SCNS_STATUS_OK;
}

void scnsBspGyroUpdateResult(ScnsGyroEnum gyN,ScnsGyroResult this)
{
#if defined(SCNS_SMCTP_EXT_OSCILLOSCOPE_ENABLE)&&SCNS_SMCTP_EXT_OSCILLOSCOPE_ENABLE==1
    if(scnsMenuCanPageSend(4))
        scnsSmctpExtOscilloscopeSend(SCNS_SMCTP_CHANNEL_VISUAL_SCOPE,this.pitch,this.roll,this.yaw,this.dPitch,this.dRoll,this.dYaw);
#endif
}

#endif
